package model

import (
	"gorm.io/gorm"
	"time"
)

type Live struct {
	Id        uint           `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Name      string         `gorm:"column:name;type:varchar(255);not null;" json:"name"`
	Sex       string         `gorm:"column:sex;type:varchar(255);not null;" json:"sex"`
	Gift      string         `gorm:"column:gift;type:varchar(255);not null;" json:"gift"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
	Duration  uint           `gorm:"column:duration;type:bigint(3) UNSIGNED;not null;default:0;" json:"duration"`
	Status    string         `gorm:"column:status;type:varchar(255);not null;" json:"status"`
}

func (l *Live) TableName() string {
	return "live"
}
